/*
 * @Description:
 * @Autor: Song
 * @Date: 2022-11-02 11:08:02
 * @LastEditors: Song
 * @LastEditTime: 2023-01-04 11:26:34
 */
import service from "@/api/index";
//赛事成绩相关接口
const COMPETI_TION_ACHIEVENT_API = "/api/CompetitionAchievement/";
export default {
	AddCompetitionAchievementInfoApi: (params: object) => {
		//添加成绩信息
		return service.post(`${COMPETI_TION_ACHIEVENT_API}AddCompetitionAchievementInfo`, params);
	},
	UpdateCompetitionAchievementInfoApi: (params: object) => {
		//更新成绩信息
		return service.post(`${COMPETI_TION_ACHIEVENT_API}UpdateCompetitionAchievementInfo`, params);
	},
	GetCompetitionAchievementInfoApi: (params: object) => {
		//获取比赛成绩信息
		return service.post(`${COMPETI_TION_ACHIEVENT_API}GetCompetitionAchievementInfo`, params);
	},
	GetEventsSessionCompetitionAchievementInfoApi: (params: object) => {
		//获取活动会话比赛信息
		return service.post(`${COMPETI_TION_ACHIEVENT_API}GetEventsSessionCompetitionAchievementInfo`, params);
	},
	DownloadEventsSessionCompetitionAchievementExcelApi: (params: object) => {
		//成绩下载为Excel
		return service.post(`${COMPETI_TION_ACHIEVENT_API}DownloadEventsSessionCompetitionAchievementExcel`, params);
	},
	GetEventsSessionCompetitionAchievementInfoDetailsApi: (params: string) => {
		//获取活动会话竞赛成就信息详细信息
		return service.post(`${COMPETI_TION_ACHIEVENT_API}GetEventsSessionCompetitionAchievementInfoDetails`, { Id: params });
	},
	AddAchievementOverPointInfoApi: (params: object) => {
		//添加成就超点信息
		return service.post(`${COMPETI_TION_ACHIEVENT_API}AddAchievementOverPointInfo`, params);
	},
	GetAchievementOverPointInfoApi: (params: object) => {
		//获取成就超点信息
		return service.post(`${COMPETI_TION_ACHIEVENT_API}GetAchievementOverPointInfo`, params);
	},
	UpdateAchievementOverPointInfoIsValidApi: (params: object) => {
		//更新成就超点信息有效
		return service.post(`${COMPETI_TION_ACHIEVENT_API}UpdateAchievementOverPointInfoIsValid`, params);
	},
	AddAchievementPunishmentInfoApi: (params: object) => {
		//添加成就惩罚信息
		return service.post(`${COMPETI_TION_ACHIEVENT_API}AddAchievementPunishmentInfo`, params);
	},
	GetAchievementPunishmentInfoApi: (params: object) => {
		//获取成就惩罚信息
		return service.post(`${COMPETI_TION_ACHIEVENT_API}GetAchievementPunishmentInfo`, params);
	},
	UpdateAchievementPunishmentInfoRevokeApi: (params: object) => {
		//更新成就惩罚信息撤销
		return service.post(`${COMPETI_TION_ACHIEVENT_API}UpdateAchievementPunishmentInfoRevoke`, params);
	},
	GetCompetionProjectListByCompetionIdApi: (id: string) => {
		//根据赛事id获取项目
		return service.post(`${COMPETI_TION_ACHIEVENT_API}GetCompetionProjectListByCompetionId`, { id });
	}
};
